package cn.hchaojie.javase.day01.exercise;

import org.junit.Test;

public class PrintStar {
	@Test
	public void print1() {
		for(int i=1;i<=5;i++) {
			for(int j=1;j<=5;j++) {
				if(i==j||i+j==6) {
					System.out.print("* ");
				}else {
					System.out.print(". ");
				}
			}
			System.out.println();
		}
	}
}
